cmake_minimum_required(VERSION 3.20)

project(hello)

set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)

set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)

add_library(hello SHARED hello.cpp hello.hpp)

add_executable(main main.cpp)

target_link_libraries(main hello)
